home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1418 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: magnus.acs.ohio-state.edu!csn!carbon!evans!tgibson
  2. From: tgibson@evans.cudenver.edu (Todd Arthur Gibson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Difficulty hiring people with C++ experience.
  5. Date: 10 Jan 1996 21:10:08 GMT
  6. Organization: University of Colorado at Denver
  7. Message-ID: <4d19vg$kam@carbon.cudenver.edu>
  8. References: <gmandelDJAoyx.Kpr@netcom.com>   <4ai727$of3@nrchh52.rich.nt.com>   <4api46$c95@no-names.nerdc.ufl.edu>   <4bto2d$gnq@usenet1.interramp.com>    <gmandelDKL1AF.K22@netcom.com> <4clu0d$623@usenet4.interramp.com> <4d12p3$26lq@news.doit.wisc.edu>
  9. NNTP-Posting-Host: evans.cudenver.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Eric Richard Keiter (keiter@hp-171.cae.wisc.edu) wrote:
  13.  
  14.  
  15.  
  16. : (Tom Donaldson) writes:
  17.  
  18. : :  When asked about
  19. : : "programming by contract", the response is "Huh?"  The
  20. : : difference between dynamic and static languages?  "Static
  21. : : languages shock you if you shuffle your feet, and dynamic
  22. : : languages are more energetic?"  What are your professional
  23. : : development goals for the next five years?  "To have a job and
  24. : : have lots of free time to play Sega games."
  25.  
  26. : I'm curious... what IS the difference between dynamic and static
  27. : languages?  is it that a dynamic language allows for dynamic memory
  28. : allocation?  or allows aliases?
  29.  
  30. : and what is programming by contract?  it sounds like an obvious question
  31. : -- is the answer not obvious?
  32.  
  33. : Eric Keiter
  34. : keiter@percy.engr.wisc.edu
  35.  
  36. I believe the original poster was talking about statically typed 
  37. languages vs. dynamically typed languages.  C++ is statically
  38. typed--the type of variables is known at compile-time.  You will
  39. get a compiler error if you try to assign a float to a char*.
  40.  
  41. Smalltalk is dynamically typed.  You do not specify the type
  42. of a variable when you declare it.  You could have a float in
  43. a variable one minute and a string in the same variable the
  44. next.  Errors in how the variables are used are detected
  45. while the program is running.
  46. -TAG
  47.